/*
 * Created on Jun 23, 2005
 *
 */
package com.scalar.chiptrack.adaptor.events;

import com.scalar.chiptrack.events.SSEventType;


/**
 * This event is fired whenever a new stage shows in TSMC WIP report  
 * 
 * @author Balaram Putta
 */
public class NewFabStageInTSMCEvent extends AdaptorEvent 
{

	private String mNewStageName = null;
	
	
	/**
	 * @param eventType
	 * @param userId
	 * @param sourceObject
	 * @param initEvent
	 */
	public NewFabStageInTSMCEvent( String newStage,
								   String userId,
								   AdaptorEventContext adaptorContext, 
								   boolean initEvent) 
	{
		super( AdaptorEventName.NEW_LOT_IN_TSMC_SHIPMENT_REPORT, 
			   SSEventType.ADAPTOR_EVENT,
			   userId, 
			   adaptorContext, 
			   initEvent);
		
		mNewStageName = newStage;
	}

	/**
	 * returns the new stage that was found in the TSMC WIP Report
	 * 
	 * @return new stage
	 */
	public String getNewStageName()
	{
		return mNewStageName;
	}
	
	
	/**
	 * Return Event Information
	 */
	public String getEventInfo() 
	{
		return "A new stage: " + mNewStageName + " was found in TSMC report";
	}
	
	
	/**
	 * @return Returns the Stage Name.
	 */
	public String getStageName() 
	{
		return mNewStageName;
	}
	
}

